<?php
namespace App\Services\Home;
use App\Models\Swiper;
use App\Models\Goods;
use App\Models\Anounce;

class IndexService {
	public function getIndexData(){
		$datas['swiper'] = Swiper::orderBy('id')->get();
		$datas['goods'] = Goods::orderBy('id')->limit(8)->get();
		$datas['news'] = Anounce::latest()->limit(2)->get();
	    return $datas;
	}
}